package com.woniu.bank.mapper;

import com.woniu.bank.dto.PermissionDTO;
import com.woniu.bank.entity.SysPermission;
import com.woniu.bank.vo.TreeNodeVO;

import java.util.List;

/**
* @author wangheng
* @description 针对表【sys_permission(权限表)】的数据库操作Mapper
* @createDate 2023-01-02 19:19:42
* @Entity com.woniu.bank.entity.SysPermission
*/
public interface SysPermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    List<SysPermission> selectPermissionByTel(String tel, Integer pid);

    List<TreeNodeVO> getPermissionByParentId(Integer pid);

    int deleteByRid(Integer rid);

    int insertRolePermission(PermissionDTO permissionDTO);
}
